package com.fh.controller;

import com.fh.model.Orders;
import com.fh.service.StatusUpdateService;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("static")
public class StatusUpdateController {

    @Resource
    private StatusUpdateService statusUpdateService;


    @PutMapping("update")
    public  int  update(@RequestBody Orders orders){
        return  statusUpdateService.update(orders);
    }



}
